﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;

namespace Xiami.Helper.Model
{
    public class TrackInfo
    {
        /// <summary>
        /// 歌曲标题
        /// </summary>
        public string Title { get; set; }
        /// <summary>
        /// 歌曲ID
        /// </summary>
        public string Song_id { get; set; }
        /// <summary>
        /// 专辑ID
        /// </summary>
        public string Album_id { get; set; }
        /// <summary>
        /// 专辑名
        /// </summary>
        public string Album_name { get; set; }
        public string object_id { get; set; }
        public string object_name { get; set; }
        public string insert_type { get; set; }
        public string background { get; set; }
        public string grade { get; set; }
        public string artist { get; set; }
        /// <summary>
        /// 位置
        /// </summary>
        public string Location { get; set; }

        public string ms { get; set; }
        /// <summary>
        /// 歌词
        /// </summary>
        public string Lyric { get; set; }
        /// <summary>
        /// 图片
        /// </summary>
        public string Pic { get; set; }

        /// <summary>
        /// 解密后的 下载地址
        /// </summary>
        public string MP3Url { get; set; }

        /// <summary>
        /// 长度
        /// </summary>
        public int Length { get; set; }
        #region IgnoreDataMember

        /// <summary>
        /// 图片
        /// </summary>
        [IgnoreDataMember]
        public string Pic_2
        {
            get
            {
                if (string.IsNullOrEmpty(this.Pic))
                {
                    return null;
                }
                return this.Pic.Replace("1.jpg", "2.jpg");
            }
        }

        /// <summary>
        /// 图片
        /// </summary>
        [IgnoreDataMember]
        public string Pic_3
        {
            get
            {
                if (string.IsNullOrEmpty(this.Pic))
                {
                    return null;
                }
                return this.Pic.Replace("1.jpg", "3.jpg");
            }
        }

        /// <summary>
        /// 图片
        /// </summary>
        [IgnoreDataMember]
        public string Pic_4
        {
            get
            {
                if (string.IsNullOrEmpty(this.Pic))
                {
                    return null;
                }
                return this.Pic.Replace("1.jpg", "4.jpg");
            }
        }
        /// <summary>
        /// 图片
        /// </summary>
        [IgnoreDataMember]
        public string Pic_5
        {
            get
            {
                if (string.IsNullOrEmpty(this.Pic))
                {
                    return null;
                }
                return this.Pic.Replace("1.jpg", "5.jpg");
            }
        }
        #endregion
    }
}
